lcDrwSetLimits Home

Defines maximal view limits. User can not view a drawing out of the limits. Applied only for Model Space.

 BOOL lcDrwSetLimits (
   HANDLE hDrw,
   double Xmin,
   double Ymin,
   double Xmax,
   double Ymax
 );

Parameters
hDrw
  Handle to a drawing object.
Xmin Ymin
  Left-bottom corner of the limits rectangle.
Xmax Ymax
  Right-top corner of the limits rectangle.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  After limits changes, in order to activate them in a window, call function lcWndRedraw.
To disable limits, specify zero for Xmin, Ymin, Xmax, Ymax parameters.
In order to specify Zoom-In limits, set property LC_PROP_DRW_LIM_MIXPIXSIZE.

See Also

  Drawing's properties LC_PROP_DRW_LIM_MAXLEF, LC_PROP_DRW_LIM_MAXBOT, LC_PROP_DRW_LIM_MAXRIG, LC_PROP_DRW_LIM_MAXTOP, LC_PROP_DRW_LIM_MAXON.